<?php

namespace App\Models;

/**
 * App\Models\IndexDynamic
 *
 * @property int $id 自增ID
 * @property string $dynamic_id 动态ID
 * @property string $user_id 用户ID
 * @property string $target_id 目标ID
 * @property int $target_type 目标type 1文章 2笔记
 * @property int $type 动态类型 1原创文章动态，2笔记动态，3用户推荐文章动态，4话题动态
 * @property int $is_view 是否全部用户可见，0否1是
 * @property int $is_deleted 是否删除，0正常，1删除
 * @property \Illuminate\Support\Carbon $created_at 创建时间戳
 * @property \Illuminate\Support\Carbon $updated_at 更新时间戳
 * @method static \Illuminate\Database\Eloquent\Builder|IndexDynamic newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|IndexDynamic newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|IndexDynamic query()
 */
class IndexDynamic extends BaseModel
{

    protected $table = "index_dynamic";
    protected $primaryKey = "dynamic_id";
    protected $keyType = "string";
    public $timestamps = true;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'created_at' => 'timestamp',
        'updated_at' => 'timestamp',
    ];

    /**
     * select columns
     * @var array
     */
    public $fields = [];

}
